<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">

<html><head><title>smuoi-prepend.php</title><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script><script language=JavaScript src="../javascript/searchdata.js"></script></head><body class="ContentPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>

<!--  Generated by Natural Docs, version Development Release 12-07-2007 (1.35 base) -->
<!--  http://www.naturaldocs.org  -->

<!-- saved from url=(0026)http://www.naturaldocs.org -->




<div id=Content><div class="CFile"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="smuoi-prepend.php"></a>smuoi-prepend.php</h1><div class=CBody><p>The first include in SMUOI.&nbsp;  This script is as brief as possible since its purpose is to determine whether the user intends to invoke SMUOI at all.</p><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SMain"><td class=SEntry><a href="#smuoi-prepend.php" >smuoi-prepend.php</a></td><td class=SDescription>The first include in SMUOI. </td></tr><tr class="SGroup"><td class=SEntry><a href="#Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#we_smuoi" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">we_smuoi</a></td><td class=SDescription>Determines whether SMUOI is to be invoked.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#smuoi_readenv" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">smuoi_readenv</a></td><td class=SDescription>Reads environment variables allowing for extra syntactical expressions.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>

<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Functions"></a>Functions</h3></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="we_smuoi"></a>we_smuoi</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function we_smuoi()</td></tr></table></blockquote><p>Determines whether SMUOI is to be invoked.</p><p>Possible SMUOI environment variable values -</p><ul><li>equate false (including strings &ldquo;false&rdquo; and &ldquo;0&rdquo;) == do not invoke</li><li>string &ldquo;run&rdquo; == all files invoke, file runs (exit)</li><li>array of extensions == files whose extension is an array member invoke</li><li>equate true == all files invoke Any further processing instructions are read during &lt;Domain::run&gt;.</li></ul><p>The most efficient instruction that prevents SMUOI from running in a directory is to simply unset the variable.&nbsp; In apache, do</p><blockquote><pre>UnSetEnv SMUOI</pre></blockquote><p>or if you run PHP as an apache module even better is to do</p><blockquote><pre>php_value auto_prepend_file &quot;&quot;</pre></blockquote><p>Of course, be sure to remove any extra handlers (such as .html) you had set to invoke php.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="smuoi_readenv"></a>smuoi_readenv</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function smuoi_readenv(</td><td class=PParameter nowrap>$e</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Reads environment variables allowing for extra syntactical expressions.</p><h4 class=CHeading>Special syntax</h4><ul><li>Arrays may be sent using the simple syntax [member1,member2,member3]</li><li>The booleans may be sent as their lowercase string equivalents.</li></ul><h4 class=CHeading>params</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>e</td><td class=CDLDescription>The name of the environment variable to be referenced</td></tr></table></div></div></div>

</div><!--Content-->


<div id=Footer><a href="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->


<div id=Menu><div class=MEntry><div class=MFile><a href="cgi-workaround-php.html">cgi-workaround.php</a></div></div><div class=MEntry><div class=MFile><a href="cruft/README-txt.html">Cruft Directory README</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent1')">Smernel</a><div class=MGroupContent id=MGroupContent1><div class=MEntry><div class=MFile><a href="Smernel/Adeliae/Resources/@public/js/unittest-js.html">Due to a fix in Firefox 1....6 or DP2.</a></div></div><div class=MEntry><div class=MFile><a href="Smernel/Adeliae/Resources/@public/js/builder-js.html">For Firefox &lt; 1.<span class=HB> </span>5, OPTION and OPTGROUP tags are currently broken,</a></div></div></div></div></div><div class=MEntry><div class=MFile><a href="smrc-php.html">smrc.php</a></div></div><div class=MEntry><div class=MFile id=MSelected>smuoi-prepend.php</div></div><div class=MEntry><div class=MFile><a href="smuoi-php.html">smuoi.php</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent2')">Index</a><div class=MGroupContent id=MGroupContent2><div class=MEntry><div class=MIndex><a href="../index/General.html">Everything</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Constants.html">Constants</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Files.html">Files</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Functions.html">Functions</a></div></div></div></div></div><script type="text/javascript"><!--
var searchPanel = new SearchPanel("searchPanel", "HTML", "../search");
--></script><div id=MSearchPanel class=MSearchPanelInactive><input type=text id=MSearchField value=Search onFocus="searchPanel.OnSearchFieldFocus(true)" onBlur="searchPanel.OnSearchFieldFocus(false)" onKeyUp="searchPanel.OnSearchFieldChange()"><select id=MSearchType onFocus="searchPanel.OnSearchTypeFocus(true)" onBlur="searchPanel.OnSearchTypeFocus(false)" onChange="searchPanel.OnSearchTypeChange()"><option  id=MSearchEverything selected value="General">Everything</option><option value="Constants">Constants</option><option value="Files">Files</option><option value="Functions">Functions</option></select></div></div><!--Menu-->



<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt1"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function we_smuoi()</td></tr></table></blockquote>Determines whether SMUOI is to be invoked.</div></div><div class=CToolTip id="tt2"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function smuoi_readenv(</td><td class=PParameter nowrap>$e</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Reads environment variables allowing for extra syntactical expressions.</div></div><!--END_ND_TOOLTIPS-->




<div id=MSearchResultsWindow><iframe src="" frameborder=0 name=MSearchResults id=MSearchResults></iframe><a href="javascript:searchPanel.CloseResultsWindow()" id=MSearchResultsWindowClose>Close</a></div>


<script language=JavaScript><!--
if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>